package com.gangan.model.view;


import com.gangan.model.Disease;
import com.gangan.model.tree.TreeNode;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;

import java.time.LocalDateTime;

@Data
@ApiModel(value="疾病树状持久类",description="疾病树状持久类")
public class DiseaseTreeView extends TreeNode {
    /**
     * 疾病名称
     */
    private String name;
    /**
     * 科室主键
     */
    private Integer sectionId;
    /**
     * 创建时间
     */
    private LocalDateTime createtime;
    /**
     * 修改时间
     */
    private LocalDateTime updatetime;
    public DiseaseTreeView(){}

    public DiseaseTreeView(Disease disease){
        this.name = disease.getName();
        this.sectionId = disease.getSectionId();
        this.createtime = disease.getCreatetime();
        this.updatetime = disease.getUpdatetime();
        this.id = disease.getId();
        this.parentId = disease.getParentId();
    }


}
